package com.farmer.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.farmer.pojo.Orders;
import com.farmer.pojo.Poorapply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.farmer.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

/**
* @author 86183
* @description 针对表【poorapply(贫困户申请表)】的数据库操作Service
* @createDate 2024-05-02 21:35:36
*/
public interface PoorapplyService extends IService<Poorapply> {


    Result add(String token, Poorapply poorapply);

//
//    Result add(String token, Poorapply poorapply, MultipartFile file);

    Result delete(Integer id);

    Result getById(Integer id);

    Result getAll();

    Result update(Poorapply poorapply);

    Result getPoorapplyListByToken(String token);

    Result getByTitleLike(String status);

    Result uploadFile(Integer id, MultipartFile file);

    /*
    * 下载文件*/
//    InputStream downloadFile(Integer id);

    /*
     * 分页查询*/
    Result page(Integer pageNum, Integer pageSize);
}
